import java.util.Scanner;

public class ForTest {

	public static void main(String[] args) {
		int[] ar = { 1, 2, 4, 56, 8, 10, 14 };
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入要查找的数：");
		int k = sc.nextInt();
		for (int i = 0; i < ar.length; i++) {
			if (ar[i] == k) {
				System.out.println(k + "在数组中");
				return;
			}
		}
		System.out.println(k + "不在数组中！");
	}

}
